package com.springboot.sba.D5_MySql.controller;

import com.springboot.sba.D5_MySql.dao.CustMapper;
import com.springboot.sba.D5_MySql.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mysql")
public class CustController {
   @Autowired
   public CustMapper custMapper;
    @RequestMapping("/query")
    public Object query() {
        return custMapper.getIds();
    }
}
